<? $current_chanle="room"; ?> 
<? include('layer/head.html'); ?>
<body class="live_room">
<?php 
    if ($is_anchor == 1) //主播才加载
    {
    ?>
<script type="text/javascript" src="<?php echo STATIC_HTTP.'jsdata/ocx.js'; ?>"></script>
<div style="width:0px;height:0px;z-index:1">
  <OBJECT ID="ACamera" width="0" height="0" CLASSID="CLSID:D9A3313D-2C28-4ACE-9534-347397E7FEC7">
  </OBJECT>
  <script type="text/javascript">
            var ocxCtrl = '';
			var ViewPayBoxTime=15*60*1000;
			var pay_remind = false;
			var stopviewpaybox = 0;
			var fo = 0;
			var fi = 0;
			var scroll_footer = false;
			ocxCtrl = new OcxCtrl("ACamera"); 
        </script> 
</div>
<?php 
    }
    ?>
<? include('layer/topnav.html'); ?>
<? include('layer/header.html'); ?>
  
    <div class="live_win_div">
    	<a href="javascript:;" class="Stroll_but"><embed src="http://static.9xiu.com/www/img/Stroll.swf" width="110" height="250" wmode="transparent"  ></embed></a>
        <?php if($userinfo['usertype'] == 1 && $userinfo['uid'] == $arrSingleRoomInfo['uid']){?>
            <div class="article">
              <ul class="room_manage mpt a_room_setting_option clrfix">
                <li class="fn_left"><a class="e_tab_handle current" tab="set_room_style" target="_self" href="javascript:;"><span class="live_back_span pngFix"></span>背景设置</a></li>
                <li class="fn_left"><a class="e_tab_handle" tab="set_notice" href="javascript:;"><span class="live_news_span pngFix"></span>公告设置</a></li>
                <li class="fn_left"><a class="e_tab_handle" tab="transfer" href="javascript:;"><span class="live_shift_span pngFix"></span>转移观众</a></li>
                <!--<a class="close_public e_tab_handle" tab="" href="javascript:;"></a>--> 
              </ul>
            </div> 
        <?php }?>
        <div class="top_roll">
            <div id="runway_player" class="runway alpha_bg pngFix"> </div>
        </div> 
        <div class="live_win_backs pngFix">
            <div class="live_window mpt a_live_window clrfix">
            <span id="sproomyuanbaocount" class="player_yuanbao_back pngFix"><?php echo $roomweekingotcount; ?></span>
            <a href="javascript:;" class="live_song_but pngFix" title="点歌"><b></b></a>
            <div class="alpha_bg clrfix">
              <div class="guardian mpt a_aristocrat_list fn_left">
                <a href="javascript:;" class="open_noble_but e_show_dialog pngFix" title="购买贵族"></a>
                <a href="javascript:;" class="noble_list_pre e_list_pre pngFix" title="上一页"></a>
                <a href="javascript:;" class="noble_list_next e_list_next pngFix" title="下一页"></a>
                <div class="guardian_tips pngFix hide" id="guardian_tips">
                    <dl class="clrfix">
                        <dt class="fn_left"><a href="javascript:;"><img class="e_photo" src="http://static.9xiu.com/www/img/room_style3.png" width="42" height="42"></a></dt> 
                        <dd class="fn_left e_nickname">小丫么小丫头不骗人</dd>
                        <dd class="fn_left e_level_icon">
                            <img class="icon_live_level icon_rich_level_9" src="http://static.9xiu.com/bin/2013011801/img/blank.gif">
                        </dd>
                    </dl>
                    <ul class="clrfix"> 
                        <li class="fn_left"><img class="e_aristocrat_icon" src="http://static.9xiu.com/www/img/tips_1.png" width="22" height="23"></li>
                        <li class="fn_left"><img class="e_motoring_icon" src="http://static.9xiu.com/www/img/tips_2.png" width="22" height="23"></li>
                    </ul>
                </div>
                <div class="e_aristocrat_list bd">&nbsp;
                    <!--
                  <ul class="fn_left">
                    <li class="clrfix place_right1 pngFix"><a href="#">你好好你好你好你</a><span class="icon_guizu icon_guizu_5 pngFix"></span></li>
                    <li class="clrfix place_right2 pngFix"><a href="#">你好好你好你好你</a><span class="icon_guizu icon_guizu_2 pngFix"></span></li>
                    <li class="clrfix place_right3 pngFix"><a href="#">你好你好你好你</a><span class="icon_guizu icon_guizu_3 pngFix"></span></li>
                    <li class="clrfix place_right4 pngFix"><a href="#">你好你好你好你</a><span class="icon_guizu pngFix"></span></li>
                    <li class="clrfix place_right5 pngFix"><a href="#">你好你好你好你</a><span class="icon_guizu pngFix"></span></li>
                    <li class="clrfix place_right6 pngFix"><a href="#">你好你好你好你</a><span class="icon_guizu icon_guizu_4 pngFix"></span></li>
                    <li class="clrfix place_right7 pngFix"><a href="#">你好你好你好你</a><span class="icon_guizu icon_guizu_3 pngFix"></span></li>
                    <li class="clrfix place_right8 pngFix"><a href="#">你好你好你好你</a><span class="icon_guizu pngFix"></span></li>
                    <li class="clrfix place_right9 pngFix"><a href="#">你好你好你好你</a><span class="icon_guizu pngFix"></span></li>
                    <li class="clrfix place_right10 pngFix"><a href="#">你好你好你好你</a><span class="icon_guizu icon_guizu_4 pngFix"></span></li>
                  </ul>
                  <dl class="noble_first_Icon fn_right">
                    <dt><img src="http://static.9xiu.com/www/img/noble_img.png" width="79" height="85" class="pngFix"></dt>
                    <dd><img class="icon_live_level icon_rich_level_19 ver_top" src="http://static.9xiu.com/www/img/blank.gif"></dd>
                    <dd>我叫米粒儿</dd>
                  </dl>
                  -->
                </div>
              </div>
              <div id="live_player" class="live_player"></div>
              <div  class="cosy_seat e_cosy_seat mpt a_cosyseat fn_left">
                  <!--<div id="dvputseatcount" class="Rob_div clrfix hide">
                        <b class="fn_left">沙发数量</b>
                        <div class="input_wrap fn_left">
                            <input id="txtputseatcount" type="text" value="">
                            <div class="border_end"></div>
                        </div>
                      <div class="fn_lef">
                        <a id="asendseatcopy" target="_self" href="javascript:;" class="button_22 fn_left">抢座</a>
                        <b>(1000九点/沙发）</b>
                      </div>
                    </div>-->
                  <!--<div id="dvcosyseat" class="bd">
                    <dl id="licosyseat1" sid="1" uid="0" price="1000" count="0" class="userseat qz_first_Icon fn_left">
                      <dt class="pngFix"><img src="http://static.9xiu.com/www/img/room_style3.png" width="50" height="50"></dt>
                      <dd><img class="icon_live_level icon_rich_level_19 ver_top" src="http://static.9xiu.com/www/img/blank.gif"></dd>
                      <dd class="seatnickname" title="我的蜜罐子的简简单单u范德萨">超级茱丽叶</dd>
                    </dl>-->
                    <!--<ul class="fn_right">
                      <li id="licosyseat2" sid="2" uid="0" price="1000" count="0" class="userseat clrfix pngFix place_left">
                        <b class="img_B seat_back seat_qinglong pngFix"><img src="http://static.9xiu.com/www/img/room_style3.png" width="30" height="30"></b>
                        <a target="_self" class="seatnickname" href="javascript:;" title="我的蜜罐子的简简单单u范德萨">青龙宝座</a>
                      </li>
                      <li id="licosyseat3" sid="3" uid="0" price="1000" count="0" class="userseat clrfix pngFix ">
                          <b class="img_B seat_back seat_baihu pngFix"><img src="http://static.9xiu.com/www/img/room_style3.png" width="30" height="30"></b>
                          <a target="_self" class="seatnickname" href="javascript:;"  title="我的蜜罐子的简简单单u范德萨">白虎宝座</a>
                      </li>
                      <li id="licosyseat4" sid="4" uid="0" price="1000" count="0" class="userseat clrfix pngFix ">
                        <b class="img_B seat_back seat_zhuque pngFix"><img src="http://static.9xiu.com/www/img/room_style3.png" width="30" height="30"></b>
                        <a target="_self" class="seatnickname" href="javascript:;"  title="我的蜜罐子的简简单单u范德萨">朱雀宝座</a>
                      </li>
                      <li id="licosyseat5" sid="5" uid="0" price="1000" count="0" class="userseat clrfix pngFix place_left">
                          <b class="img_B seat_back seat_xuanwu pngFix"><img src="http://static.9xiu.com/www/img/room_style3.png" width="30" height="30"></b>
                          <a target="_self" class="seatnickname" href="javascript:;"  title="我的蜜罐子的简简单单u范德萨">玄武宝座</a>
                      </li> 
                    </ul>
                  </div>-->
              </div> 
            </div>
          </div>
          <div id="giftflash_player"></div>
          <ul id="ulgiftcountlist" class="count_list hide">
            <li title="50"><span class="num_img num_img1"></span>&nbsp;V（50个）</li>
            <li title="99"><span class="num_img num_img2"></span>&nbsp;笑脸（99个）</li>
            <li title="100"><span class="num_img num_img3"></span>&nbsp;心（100个）</li>
            <li title="300"><span class="num_img num_img4"></span>&nbsp;LOVE(300个）</li>
            <li title="520"><span class="num_img num_img5"></span>&nbsp;爱之箭（520个）</li>
            <li title="1314"><span class="num_img num_img6"></span>&nbsp;一生一世（1314个）</li>
            <li title="3344"><span class="num_img num_img7"></span>&nbsp;生生世世（3344个）</li>
          </ul>
        </div> 
    </div>
  <div class="contenter clrfix"><!-- mpt a_room_init_scroll_top-->
    <div class="article clrfix live_content">
      <!--<div class="anchor_info">
        <div class="photo alpha_bg"> <img src="<?php echo (!empty($arrSingleRoomInfo['avatar']) ? $arrSingleRoomInfo['avatar'] : STATIC_HTTP . 'img/avatar.gif'); ?>" ><br />
          <?= $arrSingleRoomInfo['nickname'] ?>
          <br />
          <?= $arrSingleRoomInfo['usernum'] ?>
        </div>
        <ul class="level live clrfix">
          <li class="icon"><span id="idspliveicon" class="icon_live_level"></span></li>
          <li>
            <div class="progress_bar">
              <div id="dvprogresscredit" class="cover" style="width:50%;"></div>
            </div>
          </li>
        </ul>
        <ul class="level rich clrfix">
          <li class="icon"><span id="idspwealthicon" class="icon_rich_level"></span></li>
          <li>
            <div class="progress_bar">
              <div id="dvprogresswealth" class="cover" style="width:50%;"></div>
            </div>
          </li>
        </ul>
        <div class="live_time alpha_bg">
          <?php if($arrSingleRoomInfo['openstatic'] == 1){?>
          开播时间 <?php echo date('H:i', $arrSingleRoomInfo['opentime']) ?><br />
          <?php }else{?>
          当前无直播<br />
          <?php }?>
          粉丝数量
          <?= $arrSingleRoomInfo['fanscount'] ?>
        </div>
        <div class="operate mpt a_room_anchor_operate"> <a class="button_4 favorite e_favorite" href="javascript:;">收藏房间</a> <a class="button_4 follow e_follow" href="javascript:;">
          <?= ($isFollow ? '取消关注' : '添加关注') ?>
          </a> <a class="button_4 album" href="javascript:alert('敬请期待！');">查看相册</a> <a class="button_4 userinfo" href="javascript:alert('敬请期待！');">个人档案</a> </div>
        <ul class="anchor_rank alpha_bg">
          <div class="icon_room_anchor_rank pngFix"></div>
          &nbsp;&nbsp;本周明星排行第<span><?php if($roomRankNum > 0){echo $roomRankNum;}/*str_pad($roomRankNum, 4, '0', STR_PAD_LEFT);*/ ?></span>
        </ul>
        <div class="win_prize alpha_bg">
          <div class="hd">中奖动态：</div>
          <ul id="ulawarddynamic" class="bd">
          </ul>
        </div>
      </div>-->
      <div class="chat_window mpt a_chat_tab">
        <?php if(10000000 > $userinfo['uid']){?><p class="first_login">&gt;&gt; 主播给你发了私聊信息，请 <a href="javascript:;"><span id="private_chat_reg">注册</span> <span id="private_chat_login">登录</span></a> 查看 &lt;&lt;</p><?php }?>
        <!--<div class="hd alpha_bg">
          <ul class="tab clrfix">
            <li><a href="javascript:;" tab_bd="e_tab_bd_talk" class="e_tab_handle on" tab="talk_bd"><span class="icon_liverome_chat icon_liverome_chat_on pngFix"></span>聊天</a></li>
            <li>|<a href="javascript:;" tab_bd="e_tab_bd_gift" class="e_tab_handle" tab="gift_bd"><span class="icon_liverome_gift pngFix"></span>礼物</a></li>
            <li>|<a href="javascript:;" tab_bd="e_tab_bd_song" class="e_tab_handle" tab="song_bd"><span class="icon_liverome_Music pngFix"></span>点歌</a></li>
          </ul>
          <div class="room_trends font_color_1"><span>房间动态：</span><span id="anchor_announcement"><a target="_blank" href="<?php if($arrSingleRoomInfo['roomplacelink']){echo $arrSingleRoomInfo['roomplacelink'];}else{echo '#';} ?>"><?php echo $arrSingleRoomInfo["roomplaccard"]; ?></a></span> </div>
        </div>-->
        <div class="talk_bd  e_chat_tab_bd">
			<div class="ybFlash mpt a_yuanbao">
				<div class="ybtips hide">
                </div>
                <a href="javascript:;" class="ybimgs" title="点击送主播元宝"></a>
                <b class="ybNum pngFix">0</b>
			</div>
          	<div class="room_notice"><em>房间公告：</em><span id="anchor_announcement"><a target="_blank" href="<?php if('' == $arrSingleRoomInfo['roomplacelink'] || '请输入网址' == $arrSingleRoomInfo['roomplacelink']){echo 'http://pay.9xiu.com';}else{echo $arrSingleRoomInfo['roomplacelink'];} ?>"><?php echo $arrSingleRoomInfo["roomplaccard"]; ?></a></span></div>
          <form class="mpt a_chat_form clrfix">
            <div class="chat_list e_chat_list fn_left">
              <ul></ul>
            </div>
            <a href="javascript:;" class="deleteScreen"><span class="screen_img delete_screen pngFix"></span>清屏</a> <a href="javascript:;" class="rollScreen"><span class="screen_img roll_screen no_rool pngFix"></span>滚屏</a>
            
            <div class="gift_list alpha_bg mpt a_tab fn_right">
              <div class="list clrfix mpt a_giftarea">
              	<ul class="menu clrfix">
                  <li><a href="javascript:;" tab_bd="e_tab_bd_hot" class="e_tab_hanle on"><span></span>热门</a></li>
                  <li><a href="javascript:;" tab_bd="e_tab_bd_luck" class="e_tab_hanle"><span></span>幸运</a></li>
                  <li><a href="javascript:;" tab_bd="e_tab_bd_interest" class="e_tab_hanle"><span></span>趣味</a></li>
                  <li><a href="javascript:;" tab_bd="e_tab_bd_special" class="e_tab_hanle"><span></span>特殊</a></li>
                  <li><a href="javascript:;" tab_bd="e_tab_bd_robstar" class="e_tab_hanle"><span></span>抢星</a></li>
                  <li><a href="javascript:;" tab_bd="e_tab_bd_luxury" class="e_tab_hanle"><span></span>豪华</a></li>
                  <li><a href="javascript:;" tab_bd="e_tab_bd_package" class="e_tab_hanle"><span></span>库存</a></li>
                </ul>
              	
                <div class="wrap e_tab_bd e_tab_bd_hot">                   
                    <?php
                        foreach($arrGiftType0 as $value)
                            {
                                $x=round($value["position"]/10000);
                                $scale = $value["price"]*$value["scale"]/100;
                                $x=$x*(-1);

                                $y=$value["position"]%10000;
                                $y=$y*(-1);
                                 if($value["winstatic"]==1)
                                {
                                    $title="幸运".$value["giftname"].",价格:".$value["price"]."九点,对方可得".$scale."九点,最高可中".$value["max_win_times"]."倍";
                                }
                                else
                                {
                                    $title=$value["giftname"].",价格:".$value["price"]."九点,对方可得".$scale."九点";
                                }
                                echo '<dl>';
                                if($value["gid"]==1)
                                {
                                 echo '<dt gid="'.$value["gid"].'" giftname="'.$value["giftname"].'" gifttype="'.$value["gifttype"].'" style="background:url('.STATIC_HTTP.'img/'.$value["giftimage"].') ' . $x . 'px ' . $y . 'px no-repeat; border: 2px solid rgb(255, 102, 0);width:36px;height:36px;" title="'.$title.'"></dt>';

                                }
                                else
                                {
                                echo '<dt gid="'.$value["gid"].'" giftname="'.$value["giftname"].'" gifttype="'.$value["gifttype"].'" style="background:url('.STATIC_HTTP.'img/'.$value["giftimage"].') ' . $x . 'px ' . $y . 'px no-repeat; border:" title="'.$title.'"></dt>';
                                }

                                echo '<dd>'.$value["giftname"].'</dd>';
                                echo '</dl>';
                            }
                        ?>
                </div>
                <div class="wrap fn_left e_tab_bd e_tab_bd_luck hide">                   
                    <?php
                        foreach($arrGiftType1 as $value)
                            {
                                $x=round($value["position"]/10000);
                                $scale = $value["price"]*$value["scale"]/100;
                                $x=$x*(-1);

                                $y=$value["position"]%10000;
                                $y=$y*(-1);
                                 if($value["winstatic"]==1)
                                {
                                    $title="幸运".$value["giftname"].",价格:".$value["price"]."九点,对方可得".$scale."九点,最高可中".$value["max_win_times"]."倍";
                                }
                                else
                                {
                                    $title=$value["giftname"].",价格:".$value["price"]."九点,对方可得".$scale."九点";
                                }
                                echo '<dl>';
                                if($value["gid"]==1)
                                {
                                 echo '<dt gid="'.$value["gid"].'" giftname="'.$value["giftname"].'" gifttype="'.$value["gifttype"].'" style="background:url('.STATIC_HTTP.'img/'.$value["giftimage"].') ' . $x . 'px ' . $y . 'px no-repeat; border: 2px solid rgb(255, 102, 0);width:36px;height:36px;" title="'.$title.'"></dt>';

                                }
                                else
                                {
                                echo '<dt gid="'.$value["gid"].'" giftname="'.$value["giftname"].'" gifttype="'.$value["gifttype"].'" style="background:url('.STATIC_HTTP.'img/'.$value["giftimage"].') ' . $x . 'px ' . $y . 'px no-repeat; border:" title="'.$title.'"></dt>';
                                }

                                echo '<dd>'.$value["giftname"].'</dd>';
                                echo '</dl>';
                            }
                        ?>
                </div>
                <div class="wrap fn_left e_tab_bd e_tab_bd_interest hide">                   
                    <?php
                        foreach($arrGiftType2 as $value)
                            {
                                $x=round($value["position"]/10000);
                                $scale = $value["price"]*$value["scale"]/100;
                                $x=$x*(-1);

                                $y=$value["position"]%10000;
                                $y=$y*(-1);
                                 if($value["winstatic"]==1)
                                {
                                    $title="幸运".$value["giftname"].",价格:".$value["price"]."九点,对方可得".$scale."九点,最高可中".$value["max_win_times"]."倍";
                                }
                                else
                                {
                                    $title=$value["giftname"].",价格:".$value["price"]."九点,对方可得".$scale."九点";
                                }
                                echo '<dl>';
                                if($value["gid"]==1)
                                {
                                 echo '<dt gid="'.$value["gid"].'" giftname="'.$value["giftname"].'" gifttype="'.$value["gifttype"].'" style="background:url('.STATIC_HTTP.'img/'.$value["giftimage"].') ' . $x . 'px ' . $y . 'px no-repeat; border: 2px solid rgb(255, 102, 0);width:36px;height:36px;" title="'.$title.'"></dt>';

                                }
                                else
                                {
                                echo '<dt gid="'.$value["gid"].'" giftname="'.$value["giftname"].'" gifttype="'.$value["gifttype"].'" style="background:url('.STATIC_HTTP.'img/'.$value["giftimage"].') ' . $x . 'px ' . $y . 'px no-repeat; border:" title="'.$title.'"></dt>';
                                }

                                echo '<dd>'.$value["giftname"].'</dd>';
                                echo '</dl>';
                            }
                        ?>
                </div> 
                <div class="wrap fn_left e_tab_bd e_tab_bd_special hide">                   
                    <?php
                        foreach($arrGiftType3 as $value)
                            {
                                $x=round($value["position"]/10000);
                                $scale = $value["price"]*$value["scale"]/100;
                                $x=$x*(-1);

                                $y=$value["position"]%10000;
                                $y=$y*(-1);
                                 if($value["winstatic"]==1)
                                {
                                    $title="幸运".$value["giftname"].",价格:".$value["price"]."九点,对方可得".$scale."九点,最高可中".$value["max_win_times"]."倍";
                                }
                                else
                                {
                                    $title=$value["giftname"].",价格:".$value["price"]."九点,对方可得".$scale."九点";
                                }
                                echo '<dl>';
                                if($value["gid"]==1)
                                {
                                 echo '<dt gid="'.$value["gid"].'" giftname="'.$value["giftname"].'" gifttype="'.$value["gifttype"].'" style="background:url('.STATIC_HTTP.'img/'.$value["giftimage"].') ' . $x . 'px ' . $y . 'px no-repeat; border: 2px solid rgb(255, 102, 0);width:36px;height:36px;" title="'.$title.'"></dt>';

                                }
                                else
                                {
                                echo '<dt gid="'.$value["gid"].'" giftname="'.$value["giftname"].'" gifttype="'.$value["gifttype"].'" style="background:url('.STATIC_HTTP.'img/'.$value["giftimage"].') ' . $x . 'px ' . $y . 'px no-repeat; border:" title="'.$title.'"></dt>';
                                }

                                echo '<dd>'.$value["giftname"].'</dd>';
                                echo '</dl>';
                            }
                        ?>
                </div>
                <div class="wrap fn_left e_tab_bd e_tab_bd_robstar hide">                   
                    <?php
                        foreach($arrGiftType4 as $value)
                            {
                                $x=round($value["position"]/10000);
                                $scale = $value["price"]*$value["scale"]/100;
                                $x=$x*(-1);

                                $y=$value["position"]%10000;
                                $y=$y*(-1);
                                 if($value["winstatic"]==1)
                                {
                                    $title="幸运".$value["giftname"].",价格:".$value["price"]."九点,对方可得".$scale."九点,最高可中".$value["max_win_times"]."倍";
                                }
                                else
                                {
                                    $title=$value["giftname"].",价格:".$value["price"]."九点,对方可得".$scale."九点";
                                }
                                echo '<dl>';
                                if($value["gid"]==1)
                                {
                                 echo '<dt gid="'.$value["gid"].'" giftname="'.$value["giftname"].'" gifttype="'.$value["gifttype"].'" style="background:url('.STATIC_HTTP.'img/'.$value["giftimage"].') ' . $x . 'px ' . $y . 'px no-repeat; border: 2px solid rgb(255, 102, 0);width:36px;height:36px;" title="'.$title.'"></dt>';

                                }
                                else
                                {
                                echo '<dt gid="'.$value["gid"].'" giftname="'.$value["giftname"].'" gifttype="'.$value["gifttype"].'" style="background:url('.STATIC_HTTP.'img/'.$value["giftimage"].') ' . $x . 'px ' . $y . 'px no-repeat; border:" title="'.$title.'"></dt>';
                                }

                                echo '<dd>'.$value["giftname"].'</dd>';
                                echo '</dl>';
                            }
                        ?>
                </div>
                <div class="wrap fn_left e_tab_bd e_tab_bd_luxury hide">                   
                    <?php
                        foreach($arrGiftType5 as $value)
                            {
                                $x=round($value["position"]/10000);
                                $scale = $value["price"]*$value["scale"]/100;
                                $x=$x*(-1);

                                $y=$value["position"]%10000;
                                $y=$y*(-1);
                                 if($value["winstatic"]==1)
                                {
                                    $title="幸运".$value["giftname"].",价格:".$value["price"]."九点,对方可得".$scale."九点,最高可中".$value["max_win_times"]."倍";
                                }
                                else
                                {
                                    $title=$value["giftname"].",价格:".$value["price"]."九点,对方可得".$scale."九点";
                                }
                                echo '<dl>';
                                if($value["gid"]==1)
                                {
                                 echo '<dt gid="'.$value["gid"].'" giftname="'.$value["giftname"].'" gifttype="'.$value["gifttype"].'" style="background:url('.STATIC_HTTP.'img/'.$value["giftimage"].') ' . $x . 'px ' . $y . 'px no-repeat; border: 2px solid rgb(255, 102, 0);width:36px;height:36px;" title="'.$title.'"></dt>';

                                }
                                else
                                {
                                echo '<dt gid="'.$value["gid"].'" giftname="'.$value["giftname"].'" gifttype="'.$value["gifttype"].'" style="background:url('.STATIC_HTTP.'img/'.$value["giftimage"].') ' . $x . 'px ' . $y . 'px no-repeat; border:" title="'.$title.'"></dt>';
                                }

                                echo '<dd>'.$value["giftname"].'</dd>';
                                echo '</dl>';
                            }
                        ?>
                </div>
                <div class="wrap fn_left e_tab_bd e_tab_bd_package hide">                   
                    <?php
                        if(!empty($arrGiftType6))
                        {
                        	foreach($arrGiftType6 as $value)
                            {
                                $x=round($value["position"]/10000);
                                $scale = $value["price"]*$value["scale"]/100;
                                $x=$x*(-1);
    
                                $y=$value["position"]%10000;
                                $y=$y*(-1);
                                 if($value["winstatic"]==1)
                                {
                                    $title="幸运".$value["giftname"].",价格:".$value["price"]."九点,对方可得".$scale."九点,最高可中".$value["max_win_times"]."倍";
                                }
                                else
                                {
                                    $title=$value["giftname"].",价格:".$value["price"]."九点,对方可得".$scale."九点";
                                }
                                echo '<dl>';
                                if($value["gid"]==1)
                                {
                                 echo '<dt ispackage=1 gid="'.$value["gid"].'" giftname="'.$value["giftname"].'" gifttype="'.$value["gifttype"].'" style="background:url('.STATIC_HTTP.'img/'.$value["giftimage"].') ' . $x . 'px ' . $y . 'px no-repeat; border: 2px solid rgb(255, 102, 0);width:36px;height:36px;" title="'.$title.'"></dt>';
    
                                }
                                else
                                {
                                echo '<dt ispackage=1 gid="'.$value["gid"].'" giftname="'.$value["giftname"].'" gifttype="'.$value["gifttype"].'" style="background:url('.STATIC_HTTP.'img/'.$value["giftimage"].') ' . $x . 'px ' . $y . 'px no-repeat; border:" title="'.$title.'"></dt>';
                                }
    
                                echo '<dd>'.$value["giftname"].'</dd>';
                                echo '</dl>';
                            }
                        }
                        else
                        {
                            echo "&nbsp; &nbsp; 暂无库存";
                        }
                    ?>
                </div>
              </div>
              <!--<ul class="send_total clrfix">
                <li>赠送:</li>
                <li>
                  <div class="input_wrap name_input">
                    <input id="txtgiftname" type="text" disabled name="chat_content" gid="1" value="<?php echo $arrSingleRoomInfo['nickname'];  ?>" uid="<?php echo $arrSingleRoomInfo['uid']; ?>" />
                    <div class="border_end"></div>
                  </div>
                </li>
                <li>数量:</li>
                <li>
                  <div class="input_wrap total_input mpt a_giftcount">
                    <input id="txtgiftcount" type="text" value="1" name="chat_content" />
                    <div class="border_end"></div>
                    <a href="javascript:;" class="button_19"></a> </div>
                </li>
              </ul>
              <ul class="buttons mpt a_sendgift">
                <a class="send" href="javascript:;"></a> <a class="pay" href="javascript:;"></a>
                <div id="dvyuanbao" class="yuanbao mpt a_yuanbao"> </div>
              </ul>
              -->
            </div>
            
            <ul class="chat_operate mpt a_face clrfix">
              <li>对</li>
              <li class="receive_user">
                <div class="input_wrap">
                  <input readonly type="text" id="txtreceive_user_name" name="receive_user_name" class="e_receive_user_name" value="所有人">
                  <div class="border_end"></div>
                </div>
              </li>
              <!--<li><label class="checkbox"><input type="checkbox" name="is_private_chat" class="e_is_private_chat" />悄悄话</label></li>--> 
              <!--li><input type="hidden" name="chat_font_set" /><a href="javascript:;" class="icon_chat_font_set"></a></li-->
              <li class="faces_div_LI">
                <input type="hidden" name="chat_faces" />
                <a  target="_self" href="javascript:;" class="icon_chat_faces" id="color_bar_coins"></a>
                <div class="faces_div hide" id="color_bar_bd">
                  <div><a class="color_bar_item" href="javascript:;" colorid="1">冒个泡</a></div>
                  <div><a class="color_bar_item" href="javascript:;" colorid="2">真好听</a></div>
                  <div><a class="color_bar_item" href="javascript:;" colorid="3">加油</a></div>
                  <div><a class="color_bar_item" href="javascript:;" colorid="4">红心</a></div>
                  <div><a class="color_bar_item" href="javascript:;" colorid="5">太感动了</a></div>
                  <div><a class="color_bar_item" href="javascript:;" colorid="6">太强悍了</a></div>
                  <div><a class="color_bar_item" href="javascript:;" colorid="7">你真棒</a></div>
                  <div><a class="color_bar_item" href="javascript:;" colorid="8">啪啪啪</a></div>
                  <div><a class="color_bar_item" href="javascript:;" colorid="9">赞</a></div>
                </div>
              </li>
              <li class="chat_face">
                <input type="hidden" name="chat_face" />
                <a target="_self" href="javascript:;" class="icon_chat_face pngFix imgfacedialog" id="imgface"></a>
                <div class="face_div_panel hide" id="face_div">
                  
                </div>
              </li>
              <li class="content">
                <div class="input_wrap">
                  <input id="txtchatcontent" type="text" class="e_chat_content" name="chat_content" />
                  <div class="border_end"></div>
                </div>
              </li>
              <li>
                <input class="button_22 e_publish_btn" type="button" value="发送" />
              </li>
              <li>
                <input class="button_22 e_flyscreen_btn" type="button" value="飞屏" />
              </li>

              <li class="margin_yb">&nbsp;&nbsp;数量:&nbsp;
              </li>

              <li class="num_li_pion mpt a_giftcount">
                <a href="javascript:;" class="top_show_button"></a>
              	  <div class="input_wrap num_input_text">
                  	<input id="txtgiftcount" type="text" value="1" name="chat_content" />
                  	<div class="border_end"></div>
                  </div>
              </li>
              <li>&nbsp;给</li>
              <li class="recipient_use">
              	<div class="input_wrap">
                  <input readonly type="text"  id="txtgiftname" name="chat_content" gid="1" value="<?php echo $arrSingleRoomInfo['nickname'];  ?>" uid="<?php echo $arrSingleRoomInfo['uid']; ?>" />
                  <div class="border_end"></div>
                </div>
              </li>
              <li class="chat_pay_buts">&nbsp;<input class="button_22" type="button" value="充值" onClick="window.open('http://pay.9xiu.com/')" /></li>
            </ul>
          </form>
        </div>
        <div class="gift_bd alpha_bg e_chat_tab_bd hide">
          <div class="receive_gift_list" id="receive_gift_list"></div>
        </div>
        
      </div>
      <!--00000000-->
    </div>
    
    <div class="style_back live_bot clrfix mpt a_room_dynamic_rank">
      <div class="anchor_dynamic">
      	<p class="dynamic_title"><?php echo $arrSingleRoomInfo['nickname']; ?>（<?php echo $arrSingleRoomInfo['usernum']; ?>）</p>
        <dl class="Anchor_news clrfix">
        	<dt><img src="<?php echo (!empty($arrSingleRoomInfo['avatar']) ? $arrSingleRoomInfo['avatar'] : STATIC_HTTP . 'img/avatar.gif'); ?>" width="168" height="119"></dt>
                <dd class="mpt a_room_anchor_operate"><a href="javascript:;" class="button_21 fn_right e_follow"><?= ($isFollow ? '取消关注' : '添加关注') ?></a><span class="fn_left" id="openstatic_hander"><?php if($arrSingleRoomInfo['openstatic'] == 1){?>
          开播时间 <?php echo date('H:i', $arrSingleRoomInfo['opentime']) ?><br />
          <?php }else{?>
          当前无直播<br />
          <?php }?></span></dd>
            <dd>
            	<ul class="clrfix">
                    <li class="Anchor_li">主播等级</li>
                    <li class="Anchor_icon"><img id="idspliveicon" class="icon_live_level" src="http://static.9xiu.com/www/img/blank.gif"></li>
                    <li class="Anchor_bar liveli">
                        <div class="progress_bar" >
                            <div id="dvprogresscredit" class="cover" ></div>
                        </div>
                    </li>
                </ul>
            </dd>
            <dd>
                <ul class="clrfix">
                    <li class="Anchor_li">富豪等级</li>
                    <li class="Anchor_icon"><img id="idspwealthicon" class="icon_live_level" src="http://static.9xiu.com/www/img/blank.gif"></li>
                    <li class="Anchor_bar richli">
                        <div class="progress_bar" >
                            <div id="dvprogresswealth" class="cover" ></div>
                        </div>
                    </li>
                </ul>
            </dd>
            <dd class="margin_none">粉丝: <?= $arrSingleRoomInfo['fanscount'] ?>&nbsp;&nbsp;&nbsp;&nbsp;关注: <?= $arrSingleRoomInfo['followcount'] ?></dd>
        </dl>
        <div class="dynamic_cont">
            <div class="gift_rank clrfix">截至今日，本周礼物排名：<br>
                <?
          	if($giftrank){
                    foreach($giftrank as $val)
                    {
                    ?>
                    <img src="<?= STATICIMGSERVER ?>/gift/gift<?= $val['gid'] ?>.png" >第
          <?= $val['order'] ?>
          <?
                    }
             }else{
             	echo '主播还没有获得本周礼物任何排名，赶紧支持一下TA吧';
             }       
                    ?>
            </div>
            
            
            <?php 
                if ($is_anchor == 1) //主播才加载
                {
                ?>
                            <form class="Anchor_input add_dynamic_form e_add_dynamic_form ">
                <textarea class="e_dynamic_input" onFocus="if(this.value=='输入想要发布的内容'){this.value=''}"  >输入想要发布的内容</textarea>
                <div class="Anchor_input_button clrfix">
                            <div class="face_div_panel e_comment_face_panel hide" id="anchor_face_div">
                             <div class="face_list clrfix" style="display:block">
                                         <?php
                                            for($j=1; $j<=12; $j++)
                                            {
                                          ?>
                                            <img class="facecoin" imgid="imgface<?= $j ?>" title="<?php echo $faceTitleArr[$j];?>" src="<?= STATIC_HTTP ?>img/face/imgface<?= $j ?>.gif">
                                         <?php }?>
                            </div>
                             <div class="face_list clrfix hide">
                                            <?php
                                            for($j=13; $j<=24; $j++)
                                            {
                                          ?>
                                            <img class="facecoin" imgid="imgface<?= $j ?>" title="<?php echo $faceTitleArr[$j];?>" src="<?= STATIC_HTTP ?>img/face/imgface<?= $j ?>.gif">
                                         <?php }?>
                            </div>
                             <div class="face_list clrfix hide">
                                            <?php
                                            for($j=25; $j<=36; $j++)
                                            {
                                          ?>
                                            <img class="facecoin" imgid="imgface<?= $j ?>" title="<?php echo $faceTitleArr[$j];?>" src="<?= STATIC_HTTP ?>img/face/imgface<?= $j ?>.gif">
                                         <?php }?>
                            </div>
                             <div class="face_list clrfix hide">
                                            <?php
                                            for($j=37; $j<=48; $j++)
                                            {
                                          ?>
                                            <img class="facecoin" imgid="imgface<?= $j ?>" title="<?php echo $faceTitleArr[$j];?>" src="<?= STATIC_HTTP ?>img/face/imgface<?= $j ?>.gif">
                                         <?php }?>
                             </div>
                             <div class="face_list clrfix hide">
                                            <?php
                                            for($j=49; $j<=60; $j++)
                                            {
                                          ?>
                                            <img class="facecoin" imgid="imgface<?= $j ?>" title="<?php echo $faceTitleArr[$j];?>" src="<?= STATIC_HTTP ?>img/face/imgface<?= $j ?>.gif">
                                         <?php }?>
                             </div>
                             <div class="face_list clrfix hide">
                                                     <?php
                                            for($j=61; $j<=72; $j++)
                                            {
                                          ?>
                                            <img class="facecoin" imgid="imgface<?= $j ?>" title="<?php echo $faceTitleArr[$j];?>" src="<?= STATIC_HTTP ?>img/face/imgface<?= $j ?>.gif">
                                         <?php }?>
                             </div>
                             <div class="face_list clrfix hide">
                                            <?php
                                            for($j=73; $j<=74; $j++)
                                            {
                                          ?>
                                            <img class="facecoin" imgid="imgface<?= $j ?>" title="<?php echo $faceTitleArr[$j];?>" src="<?= STATIC_HTTP ?>img/face/imgface<?= $j ?>.gif">
                                         <?php }?>
                             </div>
                             <div class="face_paging">
                                <a href="javascript:;" class="e_face_page_handle">1</a> <a href="javascript:;" class="e_face_page_handle">2</a> <a href="javascript:;" class="e_face_page_handle">3</a> <a href="javascript:;" class="e_face_page_handle">4</a> <a href="javascript:;" class="e_face_page_handle">5</a> <a href="javascript:;" class="e_face_page_handle">6</a> <a href="javascript:;" class="e_face_page_handle">7</a>
                             </div>
                            </div>
                	<div class="fn_left">
                    	<a href="javascript:;" id="anchor_face_coin">
                        	<span class="icon_live_face"></span>表情
                        </a>
                        <a href="javascript:;">
                        	<span class="icon_live_imgs"></span>图片
                        </a>
                    </div>
                    <div class="fn_right">
                    	<!--span>还能输入<b>140</b>字</span-->
                        <a dyid="3" href="javascript:;" class="button_23 e_publish_dynamic">发布动态</a>
                    </div>
                </div>
            </form>
        <?php 
                }
                ?>
            
        </div>
            
        <div class="anchor_dynamic_cont">
        <div class="hd clrfix"><span>主播最新动态</span></div>
        <div class="bd e_dynamic_list">
            <!--dl class="clrfix">
                <dt class="fn_left"><img src="http://static.9xiu.com/www/img/room_style3.png"></dt>
                <dd class="fn_left">
                    <p><a href="javascript:;">夏天-summer:</a>亲，天冷要加衣了喔。亲，天冷要加衣了喔。亲
    ，天冷要加衣了喔。/害羞</p>
                    <div class="clrfix dynamic_cont_bot">
                        <span class="fn_right"><a href="javascript:;">删除</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="javascript:;">评论(20)</a></span>
                        <span class="fn_left">2013-01-15 12:23</span>
                    </div>
                </dd>
            </dl>-->
        </div>
        </div>
      </div>
      
      <div class="room_botRig fn_right">
	    	<!----轮播广告图Begin---->
          <div class="ad_div mpt a_indexfocus" focuswidth="530">
            <div class="bd">
                <ul class="pictrues clrfix e_pictrues">
                <?php if($indexfocus){foreach($indexfocus as $key=>$val){?>
                    <li class="fn_left"><a href="<?php echo $val['focus_link_url']?>" target="_blank"><img src="<?php echo $val['focus_pic_url']?>"></a></li>
                <?php }}?>    
                </ul>
                <ul class="handles e_handles">
                <?php if($indexfocus){foreach($indexfocus as $key=>$val){?>
                    <li class="fn_left"><a href="javascript:;" <?php if($key==0) echo 'class="on"'?> ></a></li>
                <?php }}?>      
                </ul>
            </div>
            <div class="ft"></div>
          </div>
          <!----轮播广告图End------>
          <p class="fans_title">本场直播的粉丝排行榜</p>
          
          <div class="user_gift_rank  mpt a_tab">
            <!--<div class="hd">
              <ul class="tab_style_1 clrfix">
                <li><a href="javascript:;" tab_bd="e_tab_bd_1" class="e_tab_hanle on">本日粉丝榜</a></li>
                <li>|<a href="javascript:;" tab_bd="e_tab_bd_2" class="e_tab_hanle">本周粉丝榜</a></li>
              </ul>
            </div>-->
            <div class="bd e_fans_rank_day e_tab_bd e_tab_bd_1">
                      <ul class="title clrfix">
                        <li class="order_num">排名</li>
                        <li class="userinfo">用户</li>
                        <li class="contribution">贡献值</li>
                      </ul>
            
            </div>
            <div class="bd e_fans_rank_week e_tab_bd e_tab_bd_2 hide"></div>
          </div>
          
          <div class="user_gift_rank mpt a_tab">
            <div class="hd">
              <ul class="clrfix fans_Tab">
                <li><a href="javascript:;" tab_bd="e_tab_bd_1" class="e_tab_hanle fans_Tab_One on"><b></b>本月粉丝榜</a></li>
                <li><a href="javascript:;" tab_bd="e_tab_bd_2" class="e_tab_hanle"><b></b>超级粉丝榜</a></li>
              </ul>
            </div>
            <div class="bd e_fans_rank_month e_tab_bd e_tab_bd_1">
            </div>
            
            <div class="bd e_fans_rank_all e_tab_bd e_tab_bd_2 hide"></div>
          </div>
      </div>
      
    </div>
  </div>
<div class="user_list mpt a_user_list alpha_bg" style="display:none;">
    <a id="auserlisticon" href="javascript:;" class="useList_button useList_button_close pngFix"></a>
    <div id="dvuserlistall" class="mpt a_tab">
    <ul class="hd tab_style_1">
      <li><a href="javascript:;" tab_bd="e_tab_bd_user" class="e_tab_hanle on">观众0</a></li>
      <li><a href="javascript:;" tab_bd="e_tab_bd_manager" class="e_tab_hanle">管理员0</a></li>
    </ul>
    <ul id="ulrightuserlist" class="bd e_tab_bd e_tab_bd_user" >
    </ul>
    <ul id="ulrightmanagerlist" class="bd e_tab_bd e_tab_bd_manager hide">
    </ul>
  </div>
</div>

<!--用户列表-->
<div class="live_user_list"><!--user_list_none-->
	<a href="javascript:;" class="open_but hide"><b class="user_list_back list_back14 pngFix" title="打开观众列表"></b></a>
	<span class="top_icon"><b class="user_list_back list_back1" title="隐藏观众列表"></b></span>
    <div class="list_tab clrfix">
    	<a href="javascript:;" class="first_taba on">观众200</a>
        <a href="javascript:;">管理员5</a>
    </div>
    <ul class="user_list_box ">
    	<li><img class="icon_live_level icon_rich_level_0" src="http://static.9xiu.com/www/img/blank.gif">&nbsp;896578542
        	<p><a href="javascript:;" class="user_list_back list_back2"></a>没有情人的情人节</p>
        </li>
        <li class="odd"><img class="icon_live_level icon_rich_level_0" src="http://static.9xiu.com/www/img/blank.gif">&nbsp;896578542
        	<p><a href="javascript:;" class="user_list_back list_back2"></a>没有情人的情人节</p>
        </li>
        <li><img class="icon_live_level icon_rich_level_0" src="http://static.9xiu.com/www/img/blank.gif">&nbsp;896578542
        	<p><a href="javascript:;" class="user_list_back list_back2"></a>没有情人的情人节</p>
        </li>
        <li class="odd"><img class="icon_live_level icon_rich_level_0" src="http://static.9xiu.com/www/img/blank.gif">&nbsp;896578542
        	<p><a href="javascript:;" class="user_list_back list_back2"></a>没有情人的情人节</p>
        </li>
        <li><img class="icon_live_level icon_rich_level_0" src="http://static.9xiu.com/www/img/blank.gif">&nbsp;896578542
        	<p><a href="javascript:;" class="user_list_back list_back2"></a>没有情人的情人节</p>
        </li>
        <li class="odd"><img class="icon_live_level icon_rich_level_0" src="http://static.9xiu.com/www/img/blank.gif">&nbsp;896578542
        	<p><a href="javascript:;" class="user_list_back list_back2"></a>没有情人的情人节</p>
        </li>
        <li><img class="icon_live_level icon_rich_level_0" src="http://static.9xiu.com/www/img/blank.gif">&nbsp;896578542
        	<p><a href="javascript:;" class="user_list_back list_back2"></a>没有情人的情人节</p>
        </li>
        <li class="odd"><img class="icon_live_level icon_rich_level_0" src="http://static.9xiu.com/www/img/blank.gif">&nbsp;896578542
        	<p><a href="javascript:;" class="user_list_back list_back2"></a>没有情人的情人节</p>
        </li>
        <li><img class="icon_live_level icon_rich_level_0" src="http://static.9xiu.com/www/img/blank.gif">&nbsp;896578542
        	<p><a href="javascript:;" class="user_list_back list_back2"></a>没有情人的情人节</p>
        </li>
        <li class="odd"><img class="icon_live_level icon_rich_level_0" src="http://static.9xiu.com/www/img/blank.gif">&nbsp;896578542
        	<p><a href="javascript:;" class="user_list_back list_back2"></a>没有情人的情人节</p>
        </li>
        <li><img class="icon_live_level icon_rich_level_0" src="http://static.9xiu.com/www/img/blank.gif">&nbsp;896578542
        	<p><a href="javascript:;" class="user_list_back list_back2"></a>没有情人的情人节</p>
        </li>
        <li class="odd"><img class="icon_live_level icon_rich_level_0" src="http://static.9xiu.com/www/img/blank.gif">&nbsp;896578542
        	<p><a href="javascript:;" class="user_list_back list_back2"></a>没有情人的情人节</p>
        </li>
        <li><img class="icon_live_level icon_rich_level_0" src="http://static.9xiu.com/www/img/blank.gif">&nbsp;896578542
        	<p><a href="javascript:;" class="user_list_back list_back2"></a>没有情人的情人节</p>
        </li>
        <li class="odd"><img class="icon_live_level icon_rich_level_0" src="http://static.9xiu.com/www/img/blank.gif">&nbsp;896578542
        	<p><a href="javascript:;" class="user_list_back list_back2"></a>没有情人的情人节</p>
        </li>
    </ul>
    
    
    
    <!--观众详细信息-->
    <div class="live_user_operate hide">
    	<div class="operate_title">漫步云端的行者</div>
        <ul>
        	<li><a href="javascript:;"><span class="user_list_back list_back3 pngFix"></span>赠送礼物</a></li>
            <li><a href="javascript:;"><span class="user_list_back list_back4 pngFix"></span>关注此人</a></li>
            <li><a href="javascript:;"><span class="user_list_back list_back5 pngFix"></span>对Ta公开说</a></li>
            <li><a href="javascript:;"><span class="user_list_back list_back6 pngFix"></span>对Ta悄悄说</a></li>
            <li><a href="javascript:;"><span class="user_list_back list_back7 pngFix"></span>设置管理员</a></li>
            <li><a href="javascript:;"><span class="user_list_back list_back8 pngFix"></span>删除管理员</a></li>
            <li><a href="javascript:;"><span class="user_list_back list_back9 pngFix"></span>禁言30分钟</a></li>
            <li><a href="javascript:;"><span class="user_list_back list_back10 pngFix"></span>恢复发言</a></li>
            <li><a href="javascript:;"><span class="user_list_back list_back11 pngFix"></span>踢出30分钟</a></li>
            <li class="user_date"><b class="user_list_back list_back13 pngFix"></b><a href="javascript:;"><span class="user_list_back list_back12 pngFix"></span>个人资料</a></li>
        </ul>
    </div>
    
    
</div>

<!--私聊窗口-->
<div class="user_private_chat hide"><!--user_private_chat_more-->
	<a href="javascript:;" class="user_list_back list_back15 chat_close"></a><!--user_private_chat_more-->
    <div class="chat_tab clrfix">
    	<a href="javascript:;" class="current"><b class="user_list_back list_back21 pngFix"></b><span class="user_list_back list_back20 pngFix"></span>堕落的维</a>
        <a href="javascript:;" class="chat_news"><b class="user_list_back list_back21 pngFix"></b><span class="user_list_back list_back20 pngFix"></span>堕落的纳</a>
        <a href="javascript:;"><b class="user_list_back list_back21 pngFix"></b><span class="user_list_back list_back20 pngFix"></span>堕落维斯</a>
    </div>
    
	<dl class="user_news clrfix">
    	<dt class="fn_left"><img src="http://static.9xiu.com/www/img/room_style3.png" width="40" height="40"></dt>
        <dd class="fn_left">堕落的维纳斯(845369526)</dd>
        <dd class="fn_left"><a href="javascript:;" class="user_list_back list_back16"><!--17取消关注--></a></dd>
    </dl>
    <div class="chat_cont_div">
    	<dl>
        	<dt>我&nbsp;<em>19:12:32</em></dt>
            <dd>在吗美女？</dd>
        </dl>
        <dl>
        	<dt>堕落的维纳斯&nbsp;<em>19:12:32</em></dt>
            <dd>在你妹啊，美女你妹啊</dd>
        </dl>
        <dl>
        	<dt>我&nbsp;<em>19:12:32</em></dt>
            <dd>在吗美女？</dd>
        </dl>
        <dl>
        	<dt>堕落的维纳斯&nbsp;<em>19:12:32</em></dt>
            <dd>在你妹啊，美女你妹啊</dd>
        </dl>
        <dl>
        	<dt>我&nbsp;<em>19:12:32</em></dt>
            <dd>在吗美女？</dd>
        </dl>
        <dl>
        	<dt>堕落的维纳斯&nbsp;<em>19:12:32</em></dt>
            <dd>在你妹啊，美女你妹啊</dd>
        </dl>
    </div>
    <ul class="clrfix chat_input">
    	<li class="fn_left">
        	<a href="javascript:;" class="user_list_back list_back18"></a>
            <div class="face_div_panel"></div>
        </li>
        <li class="fn_left">
        	<div class="input_wrap">
            	<input type="text" />
                <div class="border_end"></div>
            </div>
        </li>
        <li class="fn_left"><a href="javascript:;" class="user_list_back list_back19">发送</a></li><!--chat_send_none-->
    </ul>
</div>


<div class="world_speaker mpt a_world_speaker">
  <marquee id="marqueesendspeak" onMouseOver="javascript:this.stop();" onMouseOut="javascript:this.start();">
  <?php 
            if(!empty($arrSpeakerInfo))
            {
           
                foreach($arrSpeakerInfo as $value)
                {
                if(!$value["rnum"])
                {
                    $value["rnum"]=12345;
                }
                    echo "<a href='./".$value["rnum"]."' >";
                    echo '<span class="time">&nbsp'.date("H:i",$value["time"]).'</span>';
                    echo '<span class="nickname">&nbsp'.$value["nickname"].'&nbsp</span>';
                    echo '<span class="mpt a_face_replace">'.$value["content"]."&nbsp;&nbsp;";
                    echo '</a>';
                }
            }
        ?>
  </marquee>
  <a href="javascript:;" class="button button_25"></a>
  		
</div>

<? include('layer/footer.html'); ?>

<!-- 设置房间样式 窗口 -->
<div class="box dl_set_room_style hide e_box e_set_room_style mpt a_set_room_style"><!---->
  <div class="box_border">
    <div class="wrap"> <a href="javascript:;" class="close_btn icon_close pngFix e_close_btn"></a>
      <div class="hd">装饰房间</div>
      <div class="bd">
        <form>
          <!--<dl class="fieldset clrfix">
                <dt>配色方案：</dt>
                <dd class="roomstyle_item">
                    <img data="1" class="e_roomstyle_item" src="<?= STATIC_HTTP ?>/img/room_style1.png">
                    <img data="2" class="e_roomstyle_item" src="<?= STATIC_HTTP ?>/img/room_style2.png">
                    <img data="3" class="e_roomstyle_item" src="<?= STATIC_HTTP ?>/img/room_style3.png">
                </dd>
            </dl-->
          <dl class="fieldset clrfix">
            <dt>自定义背景：</dt>
            <dd>
              <div class="image_view e_image_view">背景预览</div>
              <div class="select_button">
                <div id="select_roombg_flash"></div>
                <br>
                选择背景文件<br>
              </div>
              <div class="clr"></div>
              <div>
                <label class="checkbox">
                  <input class="e_isbgimg" type="checkbox">
                  使用背景</label>
              </div>
            </dd>
          </dl>
        </form>
      </div>
      <div class="buttons"> <a href="javascript:;" class="button_4 e_submit_btn">确认</a> &nbsp;&nbsp;&nbsp; <a href="javascript:;" class="button_4 e_close_btn">取消</a> </div>
    </div>
  </div>
</div>

<!-- 开通贵族 窗口 -->
 <div class="box open_noble_box hide e_box e_dl_aristocrat mpt a_dl_aristocrat">
    <div class="box_border">
        <div class="wrap">
            <a href="javascript:;" class="close_btn icon_close pngFix e_close_btn"></a>
            <div class="hd clrfix">贵族与守护者</div>
            <div class="noble_tab clrfix">
            	<span class="rightTab">您在本房间贵族排名: <b id="my_aristocrat_order">无</b></span>
                <a href="javascript:;" class="current">开通贵族</a><!--a href="javascript:;">开通守护者</a-->
            </div>
            <div class="bd e_bd">
                <!--<div class="open_noble_content clrfix">
                    <div class="content_left">
                        <dl>
                            <dt><a href="javascript:;"></a><a href="javascript:;" class="current"></a><a href="javascript:;"></a><a href="javascript:;"></a><a href="javascript:;"></a></dt>
                            <dd>
                                <span class="pngFix"></span>
                                <img src="<?= STATIC_HTTP ?>img/daoju2.jpg" title="子爵" alt="子爵" />
                            </dd>
                        </dl>
                    </div>
                    <div class="content_right">
                        <p class="clrfix"><a href="#">了解贵族权限</a><span>子爵<b>&nbsp;( 钻石等级以上主播开启 )</b></span></p>
                        <dl>
                            <dt><img src="<?= STATIC_HTTP ?>img/daoju3.png"  title="贵宾标识" alt="贵宾标识" /></dt>
                            <dd>贵宾专属甲壳虫</dd>
                        </dl>
                        <dl>
                            <dt><img src="<?= STATIC_HTTP ?>img/daoju1.png"  title="甲壳虫" alt="甲壳虫" /></dt>
                            <dd>专属贵宾标识贵宾列表内展示</dd>
                        </dl>
                        <dl>
                            <dt><img src="<?= STATIC_HTTP ?>img/daoju5.png"  title="免费喇叭" alt="免费喇叭" /></dt>
                            <dd>免费喇叭5条/日喇叭内容特效</dd>
                        </dl>
                        <dl>
                            <dt><img src="<?= STATIC_HTTP ?>img/daoju4.png"  title="子爵续费券" alt="子爵续费券" /></dt>
                            <dd>300000九币4张子爵续费券</dd>
                        </dl>
                        <a href="#" class="imgs">价值<span>2999</span>元&nbsp;&nbsp;子爵大礼包！</a>
                    </div>
                </div>
                <div class="open_noble_button clrfix">
                    <a href="#" class="button_16"></a>
                   <ul class="open_noble_money">
                        <li>开通子爵首月：<span>500</span>元</li>
                        <li>使用子爵续费券价格仅需：<span>200</span>元</li>
                   </ul>
                </div>-->
            </div>
        </div>
    </div>
</div>

<!-- 转移观众 窗口 -->
<div class="box dl_transfer hide e_box e_transfer"><!---->
  <div class="box_border">
    <div class="wrap mpt a_room_user_transfer"> <a href="javascript:;" class="close_btn icon_close pngFix e_close_btn"></a>
      <div class="hd">转移观众</div>
      <div class="bd">
        <p>输入要转移的主播号码：</p>
        <div class="input_wrap" style="width:215px;">
          <input type="text" id="transferid" value="">
          <div class="border_end"></div>
        </div>
        <div class="buttons"> <a href="javascript:;" class="button_4" id="transfersub">确认</a> &nbsp; &nbsp; &nbsp; <a href="javascript:;" id="transfercancle" class="button_4">取消</a> </div>
      </div>
    </div>
  </div>
</div>

<!-- 设置公告 窗口 -->
<div class="box dl_set_notice hide e_box e_set_notice"><!---->
  <div class="box_border">
    <div class="wrap mpt a_room_announcement_setting">
    <form id="room_announcement_setting">
      <a href="javascript:;" class="close_btn icon_close pngFix e_close_btn"></a>
      <div class="hd">设置公告</div>
      <div class="bd">
        <p>公聊公告设置：</p>
        <div class="textarea_wrap">
          <textarea id="pub_announcement" name="pub_announcement"><?php echo $arrSingleRoomInfo["roomplaccard"]; ?></textarea>
        </div>
        <div class="input_wrap web_address">
          <input type="text" name="pub_announcement_url" id="pub_announcement_url" value="<?php if($arrSingleRoomInfo['roomplacelink']){ echo $arrSingleRoomInfo['roomplacelink'];}else{ echo '请输入网址';} ?>">
          <div class="border_end"></div>
        </div>
        <!-- 
            <p>私聊公告设置：</p>
            <div class="textarea_wrap">
                <textarea id="pri_announcement" name="pri_announcement"></textarea>
            </div>
            <div class="input_wrap web_address">
                <input type="text" name="pri_announcement_url" id="pri_announcement_url" value="输入网址">
                <div class="border_end"></div>
            </div>
            窗口 -->
        <div class="buttons"> <a href="javascript:;" class="button_4" id="room_announcement_sub_btn">确认</a> &nbsp; &nbsp; &nbsp; <a href="javascript:;" class="button_4" id="room_announcement_reset">取消</a> </div>
      </div>
    </form>
    </div>
  </div>
</div>

<!-- 添加歌曲 窗口-->
    <div class="box live_song_box hide dl_add_music e_box e_add_music"> 
    	<div class="box_border">
        	<div class="wrap mpt a_room_mucis">
            <form id="roomMusicForm">
                <a href="javascript:;" class="close_btn icon_close_live pngFix e_close_btn"></a>
                <div class="hd_div"><span class="live_song_back song_back16"></span>添加歌曲</div>
                <div class="bd my_song_list add_song">
                	<h2 class="my_song_title">
                    	<ul class="clrfix">
                            <li class="fn_left song_names">歌曲</li>
                            <li class="fn_left song_peos">原唱</li>
                        </ul>
                    </h2>
                    
                    <ul class="clrfix">
                        <li class="fn_left song_names">
                        	<div class="input_wrap song_name">
                            	<input type="text" value="" name="musicName[]"/>
                                <div class="border_end"></div>
                            </div>
                        </li>
                        <li class="fn_left song_peos">
                        	<div class="input_wrap song_people">
                            	<input type="text" value="" name="musicOriginal[]"/>
                                <div class="border_end"></div>
                            </div>
                        </li>
                    </ul>
                    
                    <ul class="clrfix">
                        <li class="fn_left song_names">
                        	<div class="input_wrap song_name">
                            	<input type="text" value="" name="musicName[]"/>
                                <div class="border_end"></div>
                            </div>
                        </li>
                        <li class="fn_left song_peos">
                        	<div class="input_wrap song_people">
                            	<input type="text" value="" name="musicOriginal[]"/>
                                <div class="border_end"></div>
                            </div>
                        </li>
                    </ul>
                    <ul class="clrfix">
                        <li class="fn_left song_names">
                        	<div class="input_wrap song_name">
                            	<input type="text" value="" name="musicName[]"/>
                                <div class="border_end"></div>
                            </div>
                        </li>
                        <li class="fn_left song_peos">
                        	<div class="input_wrap song_people">
                            	<input type="text" value="" name="musicOriginal[]"/>
                                <div class="border_end"></div>
                            </div>
                        </li>
                    </ul>
                    <ul class="clrfix">
                        <li class="fn_left song_names">
                        	<div class="input_wrap song_name">
                            	<input type="text" value="" name="musicName[]"/>
                                <div class="border_end"></div>
                            </div>
                        </li>
                        <li class="fn_left song_peos">
                        	<div class="input_wrap song_people">
                            	<input type="text" value="" name="musicOriginal[]"/>
                                <div class="border_end"></div>
                            </div>
                        </li>
                    </ul>
                    <ul class="clrfix">
                        <li class="fn_left song_names">
                        	<div class="input_wrap song_name">
                            	<input type="text" value="" name="musicName[]"/>
                                <div class="border_end"></div>
                            </div>
                        </li>
                        <li class="fn_left song_peos">
                        	<div class="input_wrap song_people">
                            	<input type="text" value="" name="musicOriginal[]"/>
                                <div class="border_end"></div>
                            </div>
                        </li>
                    </ul>
  
                </div> 
                <div class="add_but"><a href="javascript:;"  class="live_song_back song_back4" id="addmusicbtn">添加</a></div>       
                </form>
            </div>
        </div>
    </div>


<!-- 我的点歌单 窗口 -->
<?php if($userinfo['usertype'] == 1 && $userinfo['uid'] == $arrSingleRoomInfo['uid']){?>

<div class="box live_song_box dl_my_song_list hide e_box e_my_song_list"> 
    	<div class="box_border">
        	<div class="wrap mpt a_room_mucis_update">
                <a href="javascript:;" class="close_btn icon_close_live pngFix e_close_btn"></a>
                <div class="hd_div"><strong class="fn_right"><a href="javascript:;" id="roomusersonglist">本场已点歌曲</a></strong><span class="live_song_back song_back7"></span>我 的点歌单</div>
                <div class="bd my_song_list" id="my_song_list">
                	<h2 class="my_song_title">
                    	<ul class="clrfix">
                        	<li class="fn_left">歌单时间</li>
                            <li class="fn_left">歌名</li>
                            <li class="fn_left">原唱</li>
                            <li class="fn_left">操作</li>
                        </ul>
                    </h2>
                    <?php if($roomMusicList){foreach($roomMusicList as $key=>$val){?>
                    <ul class="clrfix" id="roommusicline_<?php echo $val['id'];?>"> 
                    	<li class="fn_left"><?php echo Date('Y-m-d',$val['addtime']);?></li>
                        <li class="fn_left" id="roomMusicName_<?php echo $val['id'];?>"><?php echo $val['musicname'];?></li>
                        <li class="fn_left" id="roomMusicOriginal_<?php echo $val['id'];?>">&nbsp;<?php echo $val['original'];?></li>
                        <li class="state fn_left" id="roomAction_<?php echo $val['id'];?>"><a href="javascript:;" class="live_song_back song_back8 edit_btn" roommid="<?php echo $val['id'];?>" roommname="<?php echo $val['musicname'];?>" roomoriname="<?php echo $val['original'];?>" title="编辑"></a><a href="javascript:;" roommid="<?php echo $val['id'];?>" class="live_song_back song_back9 del_btn" title="删除"></a></li>
                    </ul>
                    <?php }}?>
                    
                    <div class="song_list_page">
                    <?php 
                    for($i=1;$i<=$roomMusicTotalPage;$i++){
                    	$pagestr = '<a href="javascript:;" p="'.$i.'"';
                        if(1 == $i) $pagestr.='class="on"';
                        $pagestr .='>'.$i.'</a>';
                        echo $pagestr;
                    }
                    ?>
                    </div>
                </div> 
               <div class="song_state">
                    <h2>点歌说明:</h2>
                    <p>1. 皇冠主播15000九点  |  钻石主播10000九点  |  其他主播5000九点</p>
                    <p>2. 当主播接受点歌后正式收取点歌费用</p>
               </div>             
            </div>
        </div>
    </div>



<!-- 告白 窗口 -->
    <div class="box live_song_box dl_public_notic hide e_box e_public_notic">
    	<div class="box_border">
        	<div class="wrap mpt a_room_mucis">
                <a href="javascript:;" class="close_btn icon_close_live pngFix e_close_btn"></a>
                <div class="hd_div"><span class="live_song_back song_back15"></span>拒绝</div>
                <div class="bd">
                    <div class="song_input song_notice refuse_song clrfix">
                    	<span class="fn_left">拒绝原因:</span>
                        	<input type="text" class="fn_left" id="tousermsg" value="" rid="<?php echo $arrSingleRoomInfo['rid'];?>" songname="" />
                        <a href="javascript:;"  class="live_song_back song_back4" id="roomdealsubmit">确认</a>
                    </div>
                </div>     
            </div>
        </div>
    </div>
    

<?php }else{?>
<!-- 我的点歌单 窗口 -->
<div class="box live_song_box dl_my_song_list hide e_box e_my_song_list">
    	<div class="box_border">
        	<div class="wrap mpt a_room_user_song">
                <a href="javascript:;" class="close_btn icon_close_live pngFix e_close_btn"></a>
                <div class="hd_div"><strong class="fn_right"><a href="javascript:;" id="roomusersonglist">本场已点歌曲</a></strong><span class="live_song_back song_back1"></span><?php echo $arrSingleRoomInfo['nickname'];?>  的点歌单</div>
                <div class="bd">
                	<div id="my_song_list">
                	<h2 class="titleH2">主播预设歌单：</h2>
                    <?php if($roomMusicList){?>
                    <ul class="song_list">
                    	<?php foreach($roomMusicList as $key=>$val){?>
                    	<li class="clrfix"><a href="javascript:;" class="fn_right live_song_back song_back2 sle_song_btn" rid="<?php echo $arrSingleRoomInfo['rid'];?>" songname="<?php echo $val['musicname'];?>" title="点歌"></a><a hrer="javascript:;" class="fn_left"><?php echo $val['musicname'];?><?php if($val['original'] && '' != $val['original']) echo '('.$val['original'].')';?></a></li>
                        <?php }?>
                    </ul>
                    <?php }?>
                    
                    <div class="song_list_page">
                    
                    <?php 
                    for($i=1;$i<=$roomMusicTotalPage;$i++){
                    	$pagestr = '<a href="javascript:;" p="'.$i.'"';
                        if(1 == $i) $pagestr.='class="on"';
                        $pagestr .='>'.$i.'</a>';
                        echo $pagestr;
                    }
                    ?>
                    
                    </div>
                    </div>
                    <div class="song_input clrfix song_input_Two">
                    
                    	<span class="fn_left">自选歌曲:</span>
                    	<div class="input_wrap fn_left input_wrap1">
                        	<input type="text" value="输入歌曲名" id="custommusicname"/>
                            <div class="border_end"></div>
                        </div>
                        <span class="fn_left">&nbsp;原唱:</span>
                    	<div class="input_wrap fn_left input_wrap2">
                        	<input type="text" value="原唱" id="custommusicori"/>
                            <div class="border_end"></div>
                        </div>
                        <span class="fn_left"><a href="javascript:;" class="live_song_back song_back3" id="customadd"></a></span>
                    </div>
                </div> 
               <div class="song_state">
                    <h2>点歌说明:</h2>
                    <p>1. 皇冠主播15000九点  |  钻石主播10000九点  |  其他主播5000九点</p>
                    <p>2. 当主播接受点歌后正式收取点歌费用</p>
               </div>             
            </div>
        </div>
    </div>





<!-- 告白 窗口 -->
<div class="box live_song_box hide dl_public_notic e_box e_public_notic">
    	<div class="box_border">
        	<div class="wrap mpt a_room_user_song">
                <a href="javascript:;" class="close_btn icon_close_live pngFix e_close_btn"></a>
                <div class="hd_div"><span class="live_song_back song_back6"></span>告白</div>
                <div class="bd">
                    <div class="song_input song_notice clrfix"><span class="fn_left">将这首歌送给:</span>
                    	<div class="input_wrap fn_left">
                        	<input type="text" id="tousermsg" value="" rid="<?php echo $arrSingleRoomInfo['rid'];?>" songname=""/>
                            <div class="border_end"></div>
                        </div>
                    </div>
                </div>  
                <div class="song_but">
                	<a href="javascript:;" class="live_song_back song_back4 usersongsubmit" type="confirm">确认</a>
                    <a href="javascript:;" class="live_song_back song_back5 usersongsubmit" type="skip">跳过</a>
                </div>       
            </div>
        </div>
    </div>


<?php }?>

<div class="box live_song_box hide dl_room_user_songlist e_box e_room_user_songlist"> 
    	<div class="box_border mpt a_room_mucis">
        	<div class="wrap song_manage">
                <a href="javascript:;" class="close_btn icon_close_live pngFix e_close_btn"></a>
                <?php if($userinfo['usertype'] == 1 && $userinfo['uid'] == $arrSingleRoomInfo['uid']){?>
                	<div class="hd_div clrfix"><strong class="fn_right"><a href="javascript:;" id="openAddMusicWindow">添加歌曲</a> | <a href="javascript:;" id="openManageMusicWindow">管理歌曲</a></strong><span class="live_song_back song_back14"></span>点歌管理</div>
                <?php }else{?>
                	<div class="hd_div clrfix"><strong class="fn_right"><a href="javascript:;" id="roommusiclist">返回</a></strong><span class="live_song_back song_back14"></span>房间点歌清单</div>
                <?php }?>
                
                <div class="bd my_song_list">
                	<h2 class="my_song_title">
                    	<ul class="clrfix">
                        	<li class="fn_left">时间</li>
                            <li class="fn_left">歌名</li>
                            <li class="fn_left">点歌粉丝</li>
                            <li class="fn_left">状态</li>
                        </ul>
                    </h2>
                    
                    <div id="useraddsonglist">
                    <?php if($roomSongList){foreach($roomSongList as $key=>$val){?>
                    <ul class="clrfix <?php if($val['status'] == 1){echo 'newsong';}?>"> 
                    	<li class="fn_left"><?php echo Date('H:i',$val['addtime']);?></li>
                        <li class="fn_left"><?php echo $val['musicname'];?></li>
                        <li class="fn_left"><?php echo $val['nickname'];?></li>
                        <li class="fn_left" id="dealsongline_<?php echo $val['id'];?>">
                        <?php if($userinfo['usertype'] == 1 && $userinfo['uid'] == $arrSingleRoomInfo['uid']){?>
                        	<?php if($val['status'] == 1){?>
                            	<a href="javascript:;" class="live_song_back song_back11 agreebtn" dstyle="2" delrid="<?php echo $val['id'];?>" title="同意"></a><a href="javascript:;"  class="live_song_back song_back12 degrebtn" dstyle="4" delrid="<?php echo $val['id'];?>" title="拒绝"></a>
                            <?php }else{?>
                            	<a href="javascript:;" class="live_song_back song_back13" title="已同意"></a>
                            <?php }?>
                        <?php }else{?>
                        	<?php if($val['status'] == 1){echo '<a href="javascript:;" title="排队中">排队中</a>';}else{echo '<a href="javascript:;" class="live_song_back song_back13" title="已同意"></a>';}?>
                        	
                        <?php }?>
                        </li>
                    </ul>
                    <?php }}?>
                    </div>
                    <div class="song_list_page" id="user_songlist_page">
                    	<?php 
                        for($i=1;$i<=$roomSongTotalPage;$i++){
                            $pagestr = '<a href="javascript:;" p="'.$i.'"';
                            if(1 == $i) $pagestr.='class="on"';
                            $pagestr .='>'.$i.'</a>';
                            echo $pagestr;
                        }
                        ?>
                    </div>
                </div>         
            </div>
        </div>
    </div>

<? include('layer/foot.html'); ?> 
<script type="text/javascript">
   MPT.Config("objRoom", <?php echo $objSingleRoomInfo; ?>);
   MPT.Config("objRichCostInfo", <?php echo $arrRichCostInfo; ?>);
   MPT.Config("objAwardDynamic", <?php echo json_encode($arrAwardDynamic); ?>);
   MPT.Config("objSeatInfo", <?php echo json_encode($arrSeatInfo); ?>);
   MPT.Config("objAristocrat", <?php echo json_encode($arrAristocrat); ?>);
</script>
<? include('layer/jsstart.html'); ?>

 